﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace KKU.RBSFPP.Web.Administrator.Controllers
{
    public class DemoController : Controller
    {
        //
        // GET: /Demo/

        public ActionResult Index()
        {
            Models.DEMO1 model = new Models.DEMO1();

            return View(model);
        }
        [HttpPost]
        public ActionResult Index(Models.DEMO1 mymodel)
        {
            mymodel.Result = mymodel.Name;
            mymodel.Result1 = mymodel.Year;
            return View(mymodel);
        }
    }
}
